package com.dql.spring.selector;

import com.dql.spring.bean.Yellow;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author: DQL
 * @Date: 2022/4/28 21:07
 */
public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {

        String className = importingClassMetadata.getClassName();

        return new String[]{"com.dql.spring.bean.Color", Yellow.class.getName()};
    }
}
